package com.example.leetcode.string;

import com.example.leetcode.string.common.StringUtils;

class Solution459 {
    public boolean repeatedSubstringPattern(String s) {
        return StringUtils.repeatedSubstringPattern(s);
    }
}

public class leetcode459 {
    public static void main(String[] args) {
        Solution459 solution459 = new Solution459();
        System.out.println(solution459.repeatedSubstringPattern("abab")); // 输出: true
        System.out.println(solution459.repeatedSubstringPattern("aba"));  // 输出: false
        System.out.println(solution459.repeatedSubstringPattern("abcabcabcabc")); // 输出: true
    }
}
